import Vue from 'vue'
import Router from 'uni-simple-router'
Vue.use(Router)
//初始化
const router = new Router({
	APP: {
		animation: {
			animationType: 'pop-in',
			animationDuration: 300
		}
	},
	encodeURI: false,//页面刷新后地址栏参数丢失问题  false不丢失 true刷新后地址栏参数清空
	routes: ROUTES //路由表 此字段在vue.config.js 全局注入
});

//全局路由前置守卫
router.beforeEach((to, from, next) => {
	next()
})

// 全局路由后置守卫
router.afterEach((to, from) => {
})

export default router;
